listbox: Fix handling of non-focusable rows
authorElias Projahn <johrpan@gmail.com>
Wed, 3 Feb 2021 19:54:06 +0000 (20:54 +0100)
committerElias Projahn <johrpan@gmail.com>
Wed, 3 Feb 2021 20:22:55 +0000 (21:22 +0100)
commita7ae94c06e5126ef9c1065d684cb555e01d1a9ed
tree48a9f5f37efdb3b766b38eb400790903b62e95a1
parent120f2768e6a1e4aca6efc5481309cf6979a194be
listbox: Fix handling of non-focusable rows

This commit modifies the gtk_list_box_row_grab_focus() implementation to
correctly return FALSE in case the row couldn't be focused. This behavior will
also be honored by gtk_list_box_row_focus() to properly handle focus in that
case. To achieve that, the method has been restructured slightly.

Closes #3633
gtk/gtklistbox.c